.PHONY: server
server:
	@cargo run --bin server

.PHONY: agent
agent:
	@cargo run --bin agent


.PHONY: register_config
register_config:
	@curl -X POST -H "Content-Type: application/json" http://localhost:8000/register -d '{"path": "$(config_dir)"}'

.PHONY: register_agent
register_agent:
	@curl -X POST -H "Content-Type: application/json" http://localhost:8000/agent -d '{"config": "$(config)","addr": "$(addr)"}'	

